import Vue from 'vue'
//1.导入路由模块
import VueRouter from 'vue-router'
//2.安装路由
Vue.use(VueRouter)

import router from './router.js'

import App from './App.vue'

import { Header,Swipe, SwipeItem } from 'mint-ui'

Vue.component(Swipe.name, Swipe);

Vue.component(SwipeItem.name, SwipeItem);

import Mint from 'mint-ui';
Vue.use(Mint);


Vue.component(Header.name,Header)
import 'mint-ui/lib/style.css'
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
import './lib/mui/fonts/mui-icons-extra.ttf'
//3.导入自己 的rouder.js模块
import VueResource from 'vue-resource'
Vue.use(VueResource)

var vm=new Vue({
    el:'#app',
//4.挂载路由对象
    render:
        c=>c(App),
        router

})